<meta charset="utf-8"/>
<?php
  include 'function.php';
  $phone=$_POST['phone'];
  $password=$_POST['password'];
   //获取手机号码相关数据 
   $userinfo = find($phone);
   if(count($userinfo) == 0){
   	  echo '手机号码有误';
   	  return;
   }

   if($userinfo['password'] !== $password){
   	  echo '密码有误！';
   	  return;
   }

   echo '登陆成功';



